package cn.sfrog.project.biz.admin.domain;

import cn.sfrog.common.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;


@Data
@TableName("biz_user_give_away_record")
public class BizUserGiveAwayRecord extends BaseEntity<BizUserGiveAwayRecord>{

    public static final BizUserGiveAwayRecord DAO = new BizUserGiveAwayRecord();

    private static final long serialVersionUID = 1L;


    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;


    /** 转赠发起人id */
    private Long sponsorUserId;


    /** 转赠接收人id */
    private Long receiverUserId;


    /** 转赠人手机号 */
    private String receiverUserPhone;


    /** 转赠金额 */
    private BigDecimal giveAwayAmount;

    /** 流水号 */
    private String serialNumber;


    /** 转赠时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date giveAwayTime;


    /** 状态【0=上架 1=下架】 */
    private String status;


}
